package com.tonghe.controller;

import com.tonghe.domain.ResponseResult;
import com.tonghe.service.RecruitmentService;
import com.tonghe.service.impl.RecruitmentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date:2022/8/26- 08- 26- 10:43
 **/
@RestController
@RequestMapping("/recruitment")
public class RecruitmentController {

    @Autowired
    private RecruitmentService recruitmentService;

    @GetMapping()
    public ResponseResult getRecruitment(){
        return recruitmentService.getRecruitmentList();
    }

}
